package com.taoist_awei.blog.core;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.UUID;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class UserEntity {
    private String userId;

    private String username;

    private String password;

    private String introduce;

    private String email;

    private String location;

    private String userImage;

    public UserEntity() { }

    public UserEntity(String username,
                      String password,
                      String email) {
        this.userId = UUID.randomUUID().toString();
        this.password = password;
        this.username = username;
        this.email = email;
    }

}
